#include<stdio.h>
#include<conio.h>
void main()
{
	int a, i = 0, j;
	char b[12];
	clrscr();

	printf("\n\n\n\n\tPress ESC to Exit");
	printf("\n\n\tPlease Enter your Mobile No.");

	while(1)
	{
		window(37, 7+i, 80, 25);
		a = getche();

		if(i > 12)
		{
			break;
		}

		if(a == 27)
		{
			break;
		}

		if(a >= 48 && a <= 57)
		{
			printf("   It is a valid Number");
			b[i] = a;
			i++;
		}
		else
		{
			printf("   Not a valid Number");
		}
	}
	printf("\n\n\t\tYour Mobile Number is:");

	for(j = 0; j < i; j++)
	{
		printf("%c ", b[j]);
	}

	getch();

}